package com.caac.core.dao;

import java.util.List;

import com.caac.core.dm.Menu;
import com.caac.core.dm.Role;
import com.caac.core.dm.User;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2004</p>
 * <p>Company: AgileCentury</p>
 * @author <a href="mailto:project@agilecentury.com">Project Group</a>
 * @version 1.0
 */

public interface UserDao extends BaseDao {
    public User getUserById(String id);

    public User getUserByUsername(String username);

    public List getUsersByBureauId(String bureauId);

    public void saveUser(User user);

    public Role getRoleById(String id);

    public List getAllRoles();

    public void saveRole(Role role);

    public List getAllMenus();

    public Menu getMenuByMenuCode(String menuCode);

    public void saveRoleMenu(String roleId, String menuCode);

    public List getMenusByUsername(String username);

    public List getMenusByUsername(String username,String sysNo);

    public List getPermissionsByRoleId(String roleId);
}
